const Router = require('koa-router')
const router = new Router({prefix: '/products'})
const { add, getProductsList, upData, getList } = require('../controller/products.controller')
const { auth } = require('../middleware/auth.middleware')
router.post('/add', auth, add)
router.post('/getList', auth, getProductsList)
router.post('/upData', auth, upData)
module.exports = router
